<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemLableManage.aspx.cs"
    Inherits="admin_Lable_SystemLable_SystemLableManage" %>

<%@ Register Src="../../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>系统标签管理</title>
    <link rel="stylesheet" href="../../skin/Style.css" type="text/css" />
</head>

<script type="text/javascript" src="../../../js/jquery.js"></script>

<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            标签搜索
        </div>
        <div class="itemtitle_tect">
            <p>
                标签名称：
                <asp:TextBox ID="txtTitleName" runat="server" CssClass="i_text1"></asp:TextBox>
                标签类别：<asp:DropDownList ID="dropLableType" runat="server">
                </asp:DropDownList><asp:Button ID="btnSearch" runat="server" Text="立即查询" OnClick="btnSearch_Click"
                    CssClass="i_button" /></p>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdSystemlable" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                CellPadding="0" GridLines="None" OnRowDeleting="grdSystemlable_RowDeleting" CssClass="talbe_list" OnRowDataBound="grdSystemlable_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Name" HeaderText="标签名称">
                        <ItemStyle CssClass="left2" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Remarks" HeaderText="备注">
                        <ItemStyle CssClass="th180" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="所属类别">
                        <ItemStyle CssClass="th80" />
                        <ItemTemplate>
                            <a href='SystemLableManage.aspx?TypeID=<%# Eval("TypeID") %>'>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作选项">
                        <ItemTemplate>
                            <a href='SystemLableEdit.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>编辑</a>
                            |
                            <asp:LinkButton CommandName="delete" ID="lnkdelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                runat="server" Text="删除" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />                    
                </p>
                <asp:Label ID="lblMessage" runat="server" Visible="false"></asp:Label>
                <input id="CheckBox2" name="CheckBox2" type="checkbox" onclick="SelectAll();" />全选
                <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" Text="批量删除" OnClick="btnDelete_Click"
                    CssClass="i_button" />
            </div>
            <div>
            </div>
        </div>
    </form>
</body>
</html>
